<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body style="font-family:Arial, Helvetica, sans-serif">
<h1>Verfiy Uploaded File </h1>
<form id="form1" name="form1" method="post" action="">
<table width="800" border="1" cellspacing="0" cellpadding="10">
  <tr>
    <td colspan="2"><strong>Level 1 ID</strong> , At least One Document</td>
    <td><strong>Verification</strong></td>
  </tr>
  <tr>
    <td>Driver License<br />
      <?php 
	  echo ($this->dlFileName == '')?'<span style="color:#999; font-size:13px;">Not Upload</span>':'<a href="'.$this->webPath.$this->dlFileName.'" target = "_blank"><img src="'.$this->webPath.$this->dlFileName.'" width="450" /></a>'
	  ?>
      </td>
    <td><?php if($this->dlFileName != '') {?>[<a href="/rosteraudit/remove-uploaded-file/id_staff/<?php echo $this->idStaff?>/id_audit/<?php echo $this->idAuditer?>/file/<?php echo base64_encode($this->dlFileName)?>" onclick="return confirm('are you sure you want to remove the file <?php echo $this->dlFileName;?> ?')">REMOVE</a>]<?php }?></td>
    <td rowspan="3" valign="top">
    	<?php
        // if passed , then it has passed , if you upload new file 
		// it will over right the passed status 
		// the pass will be automaticlly dis pass 
		// and pass will be disabled 
		
		?>
      <input type="radio" name="rd_level1" id="radio" value="pass"
      <?php 
	  if($this->l1Status == 1){ echo 'checked = "checked"';}
	  if($this->dlFileName == '' && $this->psFileName == '' && $this->pvFileName == ''){
		  echo 'disabled = "disabled"';
		  }
	  ?>
       />
      Pass<br />
      <input type="radio" name="rd_level1" id="radio2" value="notpass" 
      <?php 
	  	 if($this->l1Status == 2){ echo 'checked = "checked"';}  
	  ?>
      />
Not Pass</td>
  </tr>
  <tr>
    <td>Passport<br />
    <?php 
	  echo ($this->psFileName == '')?'<span style="color:#999; font-size:13px;">Not Upload</span>':'<a href="'.$this->webPath.$this->psFileName.'" target = "_blank"><img src="'.$this->webPath.$this->psFileName.'" width="450" /></a>'
	  ?>
    
    </td>
    <td><?php if($this->psFileName != '') {?>[<a href="/rosteraudit/remove-uploaded-file/id_staff/<?php echo $this->idStaff?>/id_audit/<?php echo $this->idAuditer?>/file/<?php echo base64_encode($this->psFileName)?>" onclick="return confirm('are you sure you want to remove the file <?php echo $this->psFileName;?> ?')">REMOVE</a>]<?php }?></td>
  </tr>
  <tr>
    <td>Passport Visa page<br />
    <?php 
	  echo ($this->pvFileName == '')?'<span style="color:#999; font-size:13px;">Not Upload</span>':'<a href="'.$this->webPath.$this->pvFileName.'" target = "_blank"><img src="'.$this->webPath.$this->pvFileName.'" width="450" /></a>'
	  ?>
    </td>
    <td><?php if($this->pvFileName != '') {?>[<a href="/rosteraudit/remove-uploaded-file/id_staff/<?php echo $this->idStaff?>/id_audit/<?php echo $this->idAuditer?>/file/<?php echo base64_encode($this->pvFileName)?>" onclick="return confirm('are you sure you want to remove the file <?php echo $this->pvFileName;?> ?')">REMOVE</a>]<?php }?></td>
  </tr>
  <tr>
    <td colspan="2"><strong>Level 2 ID</strong> , At least One Document</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>Student Card<br />
    <?php 
	  echo ($this->stCardFileName == '')?'<span style="color:#999; font-size:13px;">Not Upload</span>':'<a href="'.$this->webPath.$this->stCardFileName.'" target = "_blank"><img src="'.$this->webPath.$this->stCardFileName.'" width="450" /></a>'
	  ?>
    
    </td>
    <td><?php if($this->stCardFileName != '') {?>[<a href="/rosteraudit/remove-uploaded-file/id_staff/<?php echo $this->idStaff?>/id_audit/<?php echo $this->idAuditer?>/file/<?php echo base64_encode($this->stCardFileName)?>" onclick="return confirm('are you sure you want to remove the file <?php echo $this->stCardFileName;?> ?')">REMOVE</a>]<?php }?></td>
    <td rowspan="4" valign="top"><input type="radio" name="rd_level2" id="radio3" value="pass"
      <?php 
	  if($this->l2Status == 1){ echo 'checked = "checked"';}
	  if($this->stCardFileName == '' && $this->mcCardFileName == '' && $this->cdCardFileName == ''){
		  echo 'disabled = "disabled"';
		  }
	  ?>
     />
Pass<br />
<input type="radio" name="rd_level2" id="radio4" value="notpass" 

 <?php 
	  	 if($this->l1Status == 2){ echo 'checked = "checked"';}  
	  ?>
/>
Not Pass</td>
  </tr>
  <tr>
    <td>Medicare Card<br />
    <?php 
	  echo ($this->mcCardFileName == '')?'<span style="color:#999; font-size:13px;">Not Upload</span>':'<a href="'.$this->webPath.$this->mcCardFileName.'" target = "_blank"><img src="'.$this->webPath.$this->mcCardFileName.'" width="450" /></a>'
	  ?>
    </td>
    <td><?php if($this->mcCardFileName != '') {?>[<a href="/rosteraudit/remove-uploaded-file/id_staff/<?php echo $this->idStaff?>/id_audit/<?php echo $this->idAuditer?>/file/<?php echo base64_encode($this->mcCardFileName)?>" onclick="return confirm('are you sure you want to remove the file <?php echo $this->mcCardFileName;?> ?')">REMOVE</a>]<?php }?></td>
  </tr>
  <tr>
    <td>Credit Card <br />
    <?php 
	  echo ($this->cdCardFileName == '')?'<span style="color:#999; font-size:13px;">Not Upload</span>':'<a href="'.$this->webPath.$this->cdCardFileName.'" target = "_blank"><img src="'.$this->webPath.$this->cdCardFileName.'" width="450" /></a>'
	  ?>
</td>
    <td><?php if($this->cdCardFileName != '') {?>[<a href="/rosteraudit/remove-uploaded-file/id_staff/<?php echo $this->idStaff?>/id_audit/<?php echo $this->idAuditer?>/file/<?php echo base64_encode($this->cdCardFileName)?>" onclick="return confirm('are you sure you want to remove the file <?php echo $this->cdCardFileName;?> ?')">REMOVE</a>]<?php }?></td>
  </tr>
  <tr>
    <td>TFN FORM <br />
    <?php 
	  echo ($this->tfnFileName == '')?'<span style="color:#999; font-size:13px;">Not Upload</span>':'<a href="'.$this->webPath.$this->tfnFileName.'" target = "_blank"><img src="'.$this->webPath.$this->tfnFileName.'" width="450" /></a>'
	  ?>
</td>
    <td><?php if($this->tfnFileName != '') {?>[<a href="/rosteraudit/remove-uploaded-file/id_staff/<?php echo $this->idStaff?>/id_audit/<?php echo $this->idAuditer?>/file/<?php echo base64_encode($this->tfnFileName)?>" onclick="return confirm('are you sure you want to remove the file <?php echo $this->tfnFileName;?> ?')">REMOVE</a>]<?php }?></td>
  </tr>
  <tr>
    <td colspan="2"><strong>Level 3 Documents</strong>, Staff Signed Document is Requested</td>
    <td valign="top">&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">Satff Signed File
    <?php 
	if(!empty($this->arrSdoc)){
	
	foreach($this->arrSdoc as $doc){	
		
	?>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><?php echo $doc?></td>
          <td>[<a href="/rosteraudit/remove-uploaded-file/id_staff/<?php echo $this->idStaff?>/id_audit/<?php echo $this->idAuditer?>/file/<?php echo base64_encode($doc)?>" onclick="return confirm('are you sure you want to remove the file <?php echo $doc;?> ?')">REMOVE</a>]</td>
        </tr>
        <tr>
          <td colspan="2"><a href="<?php echo $this->webPath.$doc?>" target="_blank"><img src="<?php echo $this->webPath.$doc?>" width="450" border="0" /></a></td>
        </tr>
    </table>
    <?php }
	
	}
	?>
    
    </td>
    <td valign="top"><input type="radio" name="rd_level3" id="radio5" value="pass" 
    <?php 
		if($this->l3Status == 1){ echo 'checked = "checked"';}
		if(empty($this->arrSdoc)) { echo 'disabled = "disabled"';}
	?>
    />
Pass<br />
<input type="radio" name="rd_level3" id="radio6" value="notpass" 
<?php 
	if($this->l3Status == 2){ echo 'checked = "checked"';}

?>
/>
Not Pass</td>
  </tr>
  <tr>
    <td colspan="3">
      Message Send To Manager(This Message will not able to save after you send the message)<br />
  <textarea name="message_to_manager" cols="90" rows="5" id="message_to_manager"></textarea>

      
      
    </td>
    </tr>
  <tr>
    <td colspan="3" align="center"><input type="submit" name="btn_save" id="btn_save" value="Save For Later " />
      <input type="submit" name="button2" id="button2" value="Save And Notify Manager" />
      <br />
      <br />
      (Only level 1/2/3 file need choose pass or not pass,level 4 file only need verification)<br />
      (After All level 1/2/3 file passed,the staff will be mark as &quot;Never Expire&quot;)</td>
    </tr>
  <tr>
    <td colspan="3" bgcolor="#CCCCCC"><strong>Level 4 Other  Files</strong>, Please verifiy them one by one<br />
      <br />
      <strong>If the file can not be verifed , please remove the file</strong>, a notification will be send to the manager</td>
    </tr>
  <tr>
    <td colspan="3"> <?php 
	if(!empty($this->arrOdoc)){
		foreach($this->arrOdoc as $doc){
	?>
      <table width="100%" border="0" cellspacing="0" cellpadding="5">
        <tr>
          <td width="70%"><?php echo $doc[0];?></td>
          <td>[<a href="/rosteraudit/remove-uploaded-file/id_staff/<?php echo $this->idStaff?>/id_audit/<?php echo $this->idAuditer?>/file/<?php echo base64_encode($doc[0])?>" onclick="return confirm('are you sure you want to remove the file <?php echo $doc[0];?> ?')">Remove It</a>] Or [<a href="/rosteraudit/verify-uploaded-file/id_staff/<?php echo $this->idStaff?>/id_audit/<?php echo $this->idAuditer?>/file/<?php echo base64_encode($doc[0])?>" onclick="return confirm('are you sure you want to Verify the file <?php echo $doc[0];?> ?')">Verify It</a>]</td>
          </tr>
        <tr>
          <td><?php echo $doc[1]?></td>
          <td>Status:<?php echo ($doc[2] == 1)?'Verified':'Not Verified'; ?></td>
          </tr>
        <tr>
          <td colspan="2" style="border-bottom:#333 solid 1px;"><a href="<?php echo $this->webPath.$doc[0]?>" target="_blank"><?php echo $doc[0]?></a></td>
          </tr>
        </table>
      <?php  
		}
	}?></td>
    </tr>
</table>
</form>
</body>
</html>
